A. 0
B. 1
C. 2
D. 3
Advertisement
Related Mcqs:
- Which of the following command is used to compile the Java program ?
- A. java B. javac C. javap D. none of these...
- What will be output of following program? public class Test{public static void main(String[] args){byte b=127; b++; b++; System.out.println(b); } } ?
- A. 127 B. -127 C. 129 D. -129...
- Program which executes applet is known as________________?
- A. JVM B. virtual machine C. applet engine D. None of above...
- Smallest individual unit in java program is known as____________________?
- A. token B. string C. literal D. operator...
- The following program: public class Test{ static boolean is OK; public static void main(String args[]){System.out.print(is OK); } } ?
- A. Prints true B. Prints false C. Will not compile as boolean is not initialized D. Will not compile as boolean can never be static...
- What will the output of the following program? public class Test{ public static void main(String args[]){float f = (1 / 4) * 10; int i = Math.round(f); System.out.println(i); } } ?
- A. 0 B. 1 C. 2 D. 3...
- Which collection class associates values witch keys, and orders the keys according to their natural order ?
- A. java.util.LinkedList B. java.util.TreeMap C. java.util.SortedSet D. java.util.HashSet...
- Main method parameter has which type of data type___________________?
- A. int B. char C. string D. double...
- In Java, the word true is ___________________?
- A. A Boolean literal B. A Java keyword C. Same as value 0 D. Same as value 1...
- _________ allows java code to run in the JVM to call and be called by native applications ?
- A. JNI B. FJI C. NJI D. JFI...
Advertisement